package com.zk.service;

import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;

public class CarServiceFacade {


    @Autowired
    private CarService carService;

    /**
     * 颜色
     *
     * @return
     */
    public String getColor() {
        return carService.getColor();
    }

    /**
     * 行驶里程
     */
    public int getMileage(Date date) {
        return carService.getMileage(date);
    }

    /**
     * 品牌
     */
    public String getBrand(String carCode) {
        return carService.getBrand(carCode);
    }

    /**
     * 车主身份
     */
    public String getOwner(String carCode, Date today) {
        return carService.getOwner(carCode, today);
    }
}
